﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GuiNetE
{
    public partial class Form2 : Form
    {

        public double SkrivetTal { get; set; }
        public Form2()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void cancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

         private void Form2_Click(object sender, EventArgs e)
        {
            Close();
        }

         private void ok_Click(object sender, EventArgs e)
         {
             SkrivetTal = Convert.ToDouble(textBox1.Text);
             DialogResult = DialogResult.OK;
             Close();
         }

    }
}
